package display;

import java.awt.Graphics;
import physics.Shape;
import java.util.ArrayList;
import javax.swing.JComponent;

/**
 *
 * @author peter
 */
public class Display extends JComponent {

	ArrayList<Shape> shapes_;

	Display(){
		shapes_ = new ArrayList<Shape>();
	}

	Display(ArrayList<Shape> shapes) {
		shapes_ = shapes;
	}

	@Override
	public void paintComponent(Graphics g) {
		super.paintComponents(g);
		for(Shape s : shapes_){
			// urk
		}
	}

	private int[] drawableArray(float[] someArray, float position){
		int[] retval = new int[someArray.length];
		for(int i = 0; i < someArray.length; i++)
			retval[i] = (int)(someArray[i] + position);
		return retval;
	}

	public void setShapes(ArrayList<Shape> sa){
		shapes_ = sa;
	}
}
